<?php /* Smarty version Smarty-3.0.7, created on 2012-07-02 14:16:52
         compiled from "C:\wamp\www\bioline/modules/productscategory/productscategory.tpl" */ ?>
<?php /*%%SmartyHeaderCode:167654ff191340be0b7-08424938%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9734ce57c8518f03637214650ce87f32dafa79a0' => 
    array (
      0 => 'C:\\wamp\\www\\bioline/modules/productscategory/productscategory.tpl',
      1 => 1341224053,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '167654ff191340be0b7-08424938',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_escape')) include 'C:\wamp\www\bioline\tools\smarty\plugins\modifier.escape.php';
?>

<?php if (count($_smarty_tpl->getVariable('categoryProducts')->value)>0&&$_smarty_tpl->getVariable('categoryProducts')->value!==false){?>
	<div id="<?php if (count($_smarty_tpl->getVariable('categoryProducts')->value)>5){?>productscategory<?php }else{ ?>productscategory_noscroll<?php }?>">
	<div id="productscategory_list">
		<ul>
			<?php  $_smarty_tpl->tpl_vars['categoryProduct'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('categoryProducts')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['categoryProduct']->key => $_smarty_tpl->tpl_vars['categoryProduct']->value){
?>
			<li>
				<a href="<?php echo $_smarty_tpl->getVariable('link')->value->getProductLink($_smarty_tpl->tpl_vars['categoryProduct']->value['id_product'],$_smarty_tpl->tpl_vars['categoryProduct']->value['link_rewrite'],$_smarty_tpl->tpl_vars['categoryProduct']->value['category'],$_smarty_tpl->tpl_vars['categoryProduct']->value['ean13']);?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['categoryProduct']->value['name']);?>
">
				<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['categoryProduct']->value['name'],'htmlall','UTF-8');?>

				</a>
				<?php if ($_smarty_tpl->getVariable('ProdDisplayPrice')->value&&$_smarty_tpl->tpl_vars['categoryProduct']->value['show_price']==1&&!isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value)&&!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>
					<span class="price_display">
						<span class="price"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->tpl_vars['categoryProduct']->value['displayed_price']),$_smarty_tpl);?>
</span>
					</span>
				<?php }else{ ?>
					<br />
				<?php }?>
			</li>
			<?php }} ?>
		</ul>
	</div>
	<?php if (count($_smarty_tpl->getVariable('categoryProducts')->value)>5){?><a id="productscategory_scroll_right" title="<?php echo smartyTranslate(array('s'=>'Next','mod'=>'productscategory'),$_smarty_tpl);?>
" href="javascript:{}"><?php echo smartyTranslate(array('s'=>'Next','mod'=>'productscategory'),$_smarty_tpl);?>
</a><?php }?>
	</div>
	<script type="text/javascript">
		$('#productscategory_list').trigger('goto', [<?php echo $_smarty_tpl->getVariable('middlePosition')->value;?>
-3]);
	</script>
<?php }?>
